package cn.lyh.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */

/**
 * 商品属性
 */
@Data
@TableName(value = "pms_attr")
public class PmsAttr {
	/**
	 * 属性id
	 */
	@TableId(value = "attr_id", type = IdType.AUTO)
	private Long attrId;

	/**
	 * 属性名
	 */
	@TableField(value = "attr_name")
	private String attrName;

	/**
	 * 是否需要检索[0-不需要，1-需要]
	 */
	@TableField(value = "search_type")
	private Byte searchType;

	/**
	 * 属性图标
	 */
	@TableField(value = "icon")
	private String icon;

	/**
	 * 可选值列表[用逗号分隔]
	 */
	@TableField(value = "value_select")
	private String valueSelect;

	/**
	 * 属性类型[0-销售属性，1-基本属性
	 */
	@TableField(value = "attr_type")
	private Byte attrType;

	/**
	 * 启用状态[0 - 禁用，1 - 启用]
	 */
	@TableField(value = "enable")
	private Long enable;

	/**
	 * 所属分类
	 */
	@TableField(value = "catelog_id")
	private Long catelogId;

	/**
	 * 快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整
	 */
	@TableField(value = "show_desc")
	private Byte showDesc;

	public static final String COL_ATTR_ID = "attr_id";

	public static final String COL_ATTR_NAME = "attr_name";

	public static final String COL_SEARCH_TYPE = "search_type";

	public static final String COL_ICON = "icon";

	public static final String COL_VALUE_SELECT = "value_select";

	public static final String COL_ATTR_TYPE = "attr_type";

	public static final String COL_ENABLE = "enable";

	public static final String COL_CATELOG_ID = "catelog_id";

	public static final String COL_SHOW_DESC = "show_desc";
}